package org.elasticsearch.springboot.repository;

import org.elasticsearch.springboot.entity.TestBean;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface TestBeanRespository extends CrudRepository<TestBean, Long> {
    List<TestBean> findByName(String name);

    List<TestBean> findByNameOrDesc(String text);
}
